//
// Created by wujehy on 2020/8/1.
//

#ifndef AUTH_RAFT_MYCODECTYPE_H
#define AUTH_RAFT_MYCODECTYPE_H

#include "handy/codec.h"

using handy::CodecBase;
using handy::Slice;
using handy::Buffer;

class MyCodecType : public CodecBase
{
public:
    int tryDecode(Slice data, Slice &msg) override;

    void encode(Slice msg, Buffer &buf) override;

    CodecBase *clone() override;
};


#endif //AUTH_RAFT_MYCODECTYPE_H
